﻿using System;
using Ninject.Core;

namespace WcfPOXCommunication
{
    public class IoCFactory
    {
        private static IKernel _kernel = new StandardKernel();

        public static void AddModule(IModule module)
        {
            _kernel.Load(module);
        }

        public static T Resolve<T>()
        {
            return _kernel.Get<T>();
        }

        public static object Resolve(Type t)
        {
            return _kernel.Get(t);
        }
    }
}